{extend name="public/base"/}
{block name="body"}
<link rel="stylesheet" type="text/css" href="/static/css/pagination.css">
<link rel="stylesheet" type="text/css" href="/static/css/boxImg.css">
<title>进件审核</title>
<style type="text/css">
	table{border-color:#ccc;background-color:#f4f4f4;}
	th{border:1px solid #ccc;}
	td{border:1px solid #ccc;height:32px;line-height:32px;font-size:13px;}
	.left td{padding-left:5%;}
	.center{text-align:center !important;}
	.jump-ipt{float:left;width:20px;height:20px;margin:0 5px;border:1px solid #ebebeb;text-align:center;}
	.m-style{width:440px;height:50px;margin:10px auto;}
	.jump-btn{width:30px !important;font-size:12px !important;}
	/*#callDetail tbody td{height:14px;line-height:14px;}*/
</style>
</head>
<body>
<div class="page-container">
	<input type="hidden" name="user_id" value="{$id}">
		<div id="tab-system" class="HuiTab">
			<div class="tabBar cl">
				<span>借款人信息</span>
				<span>通话记录</span>
				<span>风控大数据</span>
				<span>运营商报告</span>
			</div>
			<div class="tabCon">
				<div class="row cl">
					<caption>个人信息</caption>
					<div>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">姓名：</td>
									<td>{$userinfo.name}</td>
								</tr>
								<tr>
									<td>身份证号：</td>
									<td>{$userinfo.idcard}</td>
								</tr>
								<tr>
									<td>家庭住址：</td>
									<td>{$userinfo.address}{$userinfo.address_detail}</td>
								</tr>
								<tr>
									<td>工作地址：</td>
									<td>{$userinfo.company_address}</td>
								</tr>
								<tr>
									<td>微信：</td>
									<td>{$userinfo.wechat}</td>
								</tr>
								<tr>
									<td>邮箱：</td>
									<td>{$userinfo.email}</td>
								</tr>
								<tr>
									<td>直系亲属：</td>
									<td><span>{$userinfo.relatives}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.relatives_phone}</span></td>
								</tr>
								<tr>
									<td>紧急联系人：</td>
									<td><span>{$userinfo.emer_con}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.emer_con_phone}</span></td>
								</tr>
							</tbody>
						</table>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">性别：</td>
									<td><?php if($yysreports==1){ ?><?php if($userBasic){ ?>{$userBasic->gender}<?php } ?><?php } ?></td>
								</tr>
								<tr>
									<td>手机号：</td>
									<td>{$userinfo.phone}</td>
								</tr>
								<tr>
									<td>单位名称：</td>
									<td>{$userinfo.company_name}</td>
								</tr>
								<tr>
									<td>行业：</td>
									<td>{$userinfo.industry}</td>
								</tr>
								<tr>
									<td>工作时间：</td>
									<td>{$userinfo.work_age}</td>
								</tr>
								<tr>
									<td>QQ：</td>
									<td>{$userinfo.qq}</td>
								</tr>
								<tr>
									<td>同事：</td>
									<td><span>{$userinfo.partner}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.partner_phone}</span></td>
								</tr>
								<tr>
									<td>朋友：</td>
									<td><span>{$userinfo.friend}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>{$userinfo.friend_phone}</span></td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="row cl">
					<caption>银行卡信息</caption>
					<div>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">银行卡号：</td>
									<td>{$userinfo.bank_number}</td>
								</tr>
								<tr>
									<td>开户行：</td>
									<td>{$userinfo.bank_bank}</td>
								</tr>
							</tbody>
						</table>
						<table style="width:50%;float:left;" class="left">
							<tbody>
								<tr>
									<td style="width:30%;">预留手机号：</td>
									<td>{$userinfo.bank_phone}</td>
								</tr>
								<tr>
									<td>签约状况：</td>
									<td>{if $userinfo.bank_phone}已签约{/if}</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="row cl">
					<caption>借款记录</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">工单编号</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">产品信息</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">借款金额</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">期数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">商户</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">时间</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">状态</th>
							</tr>
						</thead>
						<tbody>
							{if !empty($orders)}
							{foreach $orders as $key=>$value }
							<tr>
								<td>{$value.order_no}</td>
								<td>{$value.moneyf}~{$value.moneyt}</td>
								<td>{$value.money}</td>
								<td>{$value.cycle}</td>
								<td>{$value.cname}</td>
								<td>{:date('Y-m-d H:i:s',$value.addtime)}</td>
								<td>{if $value.state==1}待审{elseif $value.state==3}待确认{elseif $value.state==5}撤回{elseif $value.state==7}拒绝{elseif $value.state==9}放弃{elseif $value.state==11}待放款{elseif $value.state==17}还款中{elseif $value.state==19}逾期{elseif $value.state==21}已完成{/if}</td>
							</tr>
      						{/foreach}
							{/if}
						</tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>照片</caption>
					<div>
						<div style="float:left;width:30%;">
							{if $userinfo.idcard_img}
							<img modal="zoomImg" style="width:100%;height:100%" src="/uploads/{$userinfo.idcard_img}">
							{/if}
						</div>
						<div style="float:left;width:30%;margin-left:5%;">
							{if $userinfo.idcard_imgback}
							<img modal="zoomImg" style="width:100%;height:100%" src="/uploads/{$userinfo.idcard_imgback}">
							{/if}
						</div>
						<div style="float:left;width:30%;margin-left:5%;">
							{if $userinfo.img}
							<img modal="zoomImg" style="width:100%;height:100%" src="/uploads/{$userinfo.img}">
							{/if}
						</div>
					</div>
				</div>
			</div>
			<div class="tabCon">
				<div class="row cl">
					<caption>运营商呼入呼出信息&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">直系亲属:<span style="background-color:#5eb95e;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">紧急联系人:<span style="background-color:#ffeab9;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">同事:<span style="background-color:#6db3e3;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
						<span style="color:#999;font-size:12px;">朋友:<span style="background-color:#009393;">&nbsp;&nbsp;&nbsp;&nbsp;</span></span>
					</caption>
					<div>
	                    <table style="float:left;width:44%;" class="center" id="oten">
	                        <caption>呼出前十</caption>
	                        <thead style="background-color:#f9f9f9;">
	                            <tr>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">电话</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通讯录姓名</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
	                            </tr>
	                        </thead>
	                        <tbody>
	                        </tbody>
	                    </table>           
	                    <table style="float:right;width:44%;" class="center" id="eten">
	                        <caption>呼入前十</caption>
	                        <thead style="background-color:#f9f9f9;">
	                            <tr>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">电话</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通讯录姓名</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
	                            </tr>
	                        </thead>
	                        <tbody>
	                        </tbody>
	                    </table>  
                    </div>
				</div>
				<div class="row cl">
					<caption>运营商归属地信息</caption>
					<div>
						<table class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话次数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话号码数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话时长（分钟）</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫次数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫次数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫时长（分钟）</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫时长（分钟）</th>
								</tr>
							</thead>
							<tbody>
								{if !empty($localTop36m)}
                                {foreach $localTop36m as $key=>$vo }
                                    <tr style="background-color:#f9f9f9">
                                        <td class="ct">{$vo->location}</td>
                                        <td class="ct">{$vo->callCnt}</td>
                                        <td class="ct">{$vo->peerNumberCnt}</td>
                                        <td class="ct">{:ceil($vo->callTime/60)}</td>
                                        <td class="ct">{$vo->dialCnt}</td>
                                        <td class="ct">{$vo->dialedCnt}</td>
                                        <td class="ct">{:ceil($vo->dialTime/60)}</td>
                                        <td class="ct">{:ceil($vo->dialedTime/60)}</td>
                                    </tr>
                                {/foreach}
                                {/if}
							</tbody>
						</table>
					</div>
				</div>
				<div class="row cl">
					<caption>通讯录(<?php if($contacts){ echo count($contacts);}else{echo 0;} ?>个)<input type="hidden" value="<?php if($contacts){ echo count($contacts);}else{echo 0;} ?>" name="contacts"></caption>
					<div id="test">
						{if $contacts}
						<table style="width:33%;float:left;" class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">联系人</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">联系电话</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<table style="width:33%;float:left;" class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系人</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系电话</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<table style="width:33%;float:left;" class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系人</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;border-left:0px;">联系电话</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<div style="float:left;width:100%;">
                            <div class="m-style box"></div>
						</div>
						{else /}
						暂无数据
						{/if}
					</div>
				</div>
			</div>
			<div class="tabCon">
				<!-- <div class="row cl">
					<caption>天镜全息</caption>
	                <?php if(!empty($allday['resData'])){ ?>
	                    <table class="center">
	                        <caption style="font-weight:700;font-size:14px;">(<span style="color:red;">0</span>-查询命中，其他值表示未命中)</caption>
	                        <tbody style="background:#fff;">
	                            <tr>
	                                <td style="width:25%;padding-left:5%">黑名单</td>
	                                <td style="padding-left:5%;" colspan="11">{if $allday['resData']['blacklistCode']==0}<span style="color:red;">{$allday['resData']['blacklistCode']}</span>{else if $allday['resData']['blacklistCode']==1}{$allday['resData']['blacklistCode']}{/if}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">常欠客</td>
	                                <td style="padding-left:5%;" colspan="11">{if $allday['resData']['overdueCode']==0}<span style="color:red;">{$allday['resData']['overdueCode']}</span>{else if $allday['resData']['overdueCode']==1}{$allday['resData']['overdueCode']}{/if}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">常欠客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-overdueRes">详情</button>
	                                </td>
	                                <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大逾期金额</th>
	                                        <th class="ct">历史最长逾期天数</th>
	                                        <th class="ct">逾期最早出现时间</th>
	                                        <th class="ct">逾期最近出现时间</th>
	                                        <th class="ct">历史逾期平台总数</th>
	                                        <th class="ct">今日逾期平台个数</th>
	                                        <th class="ct">近3天逾期平台个数</th>
	                                        <th class="ct">近7天逾期平台个数</th>
	                                        <th class="ct">近15天逾期平台个数</th>
	                                        <th class="ct">近30天逾期平台个数</th>
	                                        <th class="ct">近60天逾期平台个数</th>
	                                        <th class="ct">近90天逾期平台个数</th>
	                                </tr>
	                                <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueDaysMax']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueEarliestTime']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overdueLatestTime']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['overdueRes']['overduePlatform90Days']}</td>
	                                </tr>
	                                <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">逾期平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早逾期时间</th>
	                                    <th class="ct" colspan="3">最近逾期时间</th>
	                                </tr>
									{if !empty($overduePlatforms)}
										{foreach $overduePlatforms as $key=>$vo }
										 <tr class="overdueRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.overdueEarliestTime}</td>
	                                        <td class="ct" colspan="3">{$vo.overdueLatestTime}</td>
	                                     </tr>
										{/foreach}
									{/if}
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">多头客</td>
	                                <td style="padding-left:5%;" colspan="11">{if $allday['resData']['multiRegisterCode']==0}<span style="color:red;">{$allday['resData']['multiRegisterCode']}</span>{else if $allday['resData']['multiRegisterCode']==1}{$allday['resData']['multiRegisterCode']}{/if}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">多头客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-multiRegisterRes">详情</button>
	                                </td>
	                                <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史单日最多注册平台个数</th>
	                                        <th class="ct">注册最早出现时间</th>
	                                        <th class="ct">注册最近出现时间</th>
	                                        <th class="ct">历史注册平台总数</th>
	                                        <th class="ct">今日注册平台个数</th>
	                                        <th class="ct">近3天注册平台个数</th>
	                                        <th class="ct">近7天注册平台个数</th>
	                                        <th class="ct">近15天注册平台个数</th>
	                                        <th class="ct">近30天注册平台个数</th>
	                                        <th class="ct">近60天注册平台个数</th>
	                                        <th class="ct">近90天注册平台个数</th>
	                                </tr>
	                                <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerInOneDayMax']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['multiRegisterRes']['registerPlatform90Days']}</td>
	                                </tr>
	                                <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">逾期平台编号</th>
	                                    <th class="ct" colspan="5">平台类型</th>
	                                    <th class="ct" colspan="5">注册时间</th>
	                                </tr>
									{if !empty($registerPlatforms)}
										{foreach $registerPlatforms as $key=>$vo }
										 <tr class="multiRegisterRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="5">{$vo.platformType}</td>
	                                        <td class="ct" colspan="5">{$vo.registerDate}</td>
	                                    </tr>
										{/foreach}
									{/if}
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">通过客</td>
	                                <td style="padding-left:5%;" colspan="11">{if $allday['resData']['creditableCode']==0}<span style="color:red;">{$allday['resData']['creditableCode']}</span>{else if $allday['resData']['creditableCode']==1}{$allday['resData']['creditableCode']}{/if}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">通过客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-creditableRes">详情</button>
	                                </td>
	                                <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大放款金额</th>
	                                        <th class="ct">放款最早出现时间</th>
	                                        <th class="ct">放款最近出现时间</th>
	                                        <th class="ct">历史放款平台总数</th>
	                                        <th class="ct">今日放款平台个数</th>
	                                        <th class="ct">近3天放款平台个数</th>
	                                        <th class="ct">近7天放款平台个数</th>
	                                        <th class="ct">近15天放款平台个数</th>
	                                        <th class="ct">近30天放款平台个数</th>
	                                        <th class="ct">近60天放款平台个数</th>
	                                        <th class="ct">近90天放款平台个数</th>
	                                </tr>
	                                <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['creditableRes']['loanPlatform90Days']}</td>
	                                </tr>
	                                <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">放款平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早放款时间</th>
	                                    <th class="ct" colspan="3">最近放款时间</th>
	                                </tr>
									{if !empty($loanPlatforms)}
										{foreach $loanPlatforms as $key=>$vo }
										 <tr class="creditableRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.loanEarliestDate}</td>
	                                        <td class="ct" colspan="3">{$vo.loanLatestDate}</td>
	                                    </tr>
										{/foreach}
									{/if}
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">优良客</td>
	                                <td style="padding-left:5%;" colspan="11">{if $allday['resData']['favourableCode']==0}<span style="color:red;">{$allday['resData']['favourableCode']}</span>{else if $allday['resData']['favourableCode']==1}{$allday['resData']['favourableCode']}{/if}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">优良客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-favourableRes">详情</button>
	                                </td>
	                                <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大还款金额</th>
	                                        <th class="ct">还款最早出现时间</th>
	                                        <th class="ct">还款最近出现时间</th>
	                                        <th class="ct">历史还款平台总数</th>
	                                        <th class="ct">今日还款平台个数</th>
	                                        <th class="ct">近3天还款平台个数</th>
	                                        <th class="ct">近7天还款平台个数</th>
	                                        <th class="ct">近15天还款平台个数</th>
	                                        <th class="ct">近30天还款平台个数</th>
	                                        <th class="ct">近60天还款平台个数</th>
	                                        <th class="ct">近90天还款平台个数</th>
	                                </tr>
	                                <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['favourableRes']['repaymentPlatform90Days']}</td>
	                                </tr>
	                                <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">还款平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早还款时间</th>
	                                    <th class="ct" colspan="3">最近还款时间</th>
	                                </tr>
									{if !empty($repaymentPlatforms)}
										{foreach $repaymentPlatforms as $key=>$vo }
										 <tr class="favourableRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.repaymentEarliestDate}</td>
	                                        <td class="ct" colspan="3">{$vo.repaymentLatestDate}</td>
	                                    </tr>
										{/foreach}
									{/if}
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">拒贷客</td>
	                                <td style="padding-left:5%;" colspan="11">{if $allday['resData']['rejecteeCode']==0}<span style="color:red;">{$allday['resData']['rejecteeCode']}</span>{else if $allday['resData']['rejecteeCode']==1}{$allday['resData']['rejecteeCode']}{/if}</td>
	                            </tr>
	                            <tr>
	                                <td style="width:25%;padding-left:5%">拒贷客信息</td>
	                                <td style="padding-left:5%;" colspan="11">
	                                    <button type="button" class="btn btn-info btn-xs b-rejecteeRes">详情</button>
	                                </td>
	                                <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                        <th class="ct">历史最大拒贷金额</th>
	                                        <th class="ct">拒贷最早出现时间</th>
	                                        <th class="ct">拒贷最近出现时间</th>
	                                        <th class="ct">历史拒贷平台总数</th>
	                                        <th class="ct">今日拒贷平台个数</th>
	                                        <th class="ct">近3天拒贷平台个数</th>
	                                        <th class="ct">近7天拒贷平台个数</th>
	                                        <th class="ct">近15天拒贷平台个数</th>
	                                        <th class="ct">近30天拒贷平台个数</th>
	                                        <th class="ct">近60天拒贷平台个数</th>
	                                        <th class="ct">近90天拒贷平台个数</th>
	                                </tr>
	                                <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refuseAmountMax']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refuseEarliestDate']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refuseLatestDate']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatformTotal']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatformToday']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform3Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform7Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform15Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform30Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform60Days']}</td>
	                                    <td class="ct">{$allday['resData']['rejecteeRes']['refusePlatform90Days']}</td>
	                                </tr>
	                                <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                    <th class="ct">拒贷平台编号</th>
	                                    <th class="ct" colspan="4">平台类型</th>
	                                    <th class="ct" colspan="3">最早拒贷时间</th>
	                                    <th class="ct" colspan="3">最近拒贷时间</th>
	                                </tr>
									{if !empty($refusePlatforms)}
										{foreach $refusePlatforms as $key=>$vo }
										  <tr class="rejecteeRes" style="display:none;background:#f9f9f9">
	                                        <td class="ct">{$vo.platformCode}</td>
	                                        <td class="ct" colspan="4">{$vo.platformType}</td>
	                                        <td class="ct" colspan="3">{$vo.refuseEarliestDate}</td>
	                                        <td class="ct" colspan="3">{$vo.refuseLatestDate}</td>
	                                    </tr>
										{/foreach}
									{/if}
	                            </tr>
	                        </tbody>
	                    </table>
	                <?php }else{ ?>
	                <span style="color:#ccc;">暂无数据（可能没有不良信息哦）</span>
	                <?php } ?>
	            </div> -->
				<!-- <div class="row cl">
					<caption>全景档案</caption>
					<div>
                	<?php if($allfilestate==1){ ?>
						<table class="left">
							<tbody>
								<tr>
									<td style="font-size:14px;font-weight:bolder;width:50%;">逾期机构数</td>
									<td>{$xyallfiles->data->result_detail->member_count}</td>
								</tr>
								<tr>
									<td style="font-size:14px;font-weight:bolder;width:50%;">逾期订单数</td>
									<td>{$xyallfiles->data->result_detail->order_count}</td>
								</tr>
								<tr>
									<td style="font-size:14px;font-weight:bolder;width:50%;">逾期总金额</td>
									<td>{$xyallfiles->data->result_detail->debt_amount}</td>
								</tr>
								<tr>
									<td style="font-size:14px;font-weight:bolder;width:50%;">近1月共债机构数</td>
									<td>{$xyallfiles->data->result_detail->current_org_count}</td>
								</tr>
								<tr>
									<td style="font-size:14px;font-weight:bolder;width:50%;">近1月共债订单数</td>
									<td>{$xyallfiles->data->result_detail->current_order_count}</td>
								</tr>
								<tr>
									<td style="font-size:14px;font-weight:bolder;width:50%;">近1月共债订单已还款金额</td>
									<td>{$xyallfiles->data->result_detail->current_order_amt}</td>
								</tr>
								<tr>
									<td style="font-size:14px;font-weight:bolder;width:50%;">近1月共债订单金额</td>
									<td>{$xyallfiles->data->result_detail->current_order_lend_amt}</td>
								</tr>
							</tbody>
						</table>

                		<h6 style="text-align:center;">逾期详情</h6>
						<table class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">逾期时间</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">逾期账期数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">逾期金额</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否结清</th>
								</tr>
							</thead>
							<tbody>
            				<?php if(!empty($xyallfiles->data->result_detail->debt_detail)){ ?>
	                            {foreach $xyallfiles->data->result_detail->debt_detail as $key=>$value }
								<tr>
									<td>{$value->endDay}</td>
									<td>{$value->billType}</td>
									<td>{$value->endMoney}</td>
									<td>{$value->endFlag}</td>
								</tr>
	                            {/foreach}
							<?php }else{echo '<tr><td style="border-right:none;">(查无数据!)</td><td style="border-right:none;border-left:none;"></td><td style="border-right:none;border-left:none;"></td><td style="border-left:none;"></td></tr>';} ?>
							</tbody>
						</table>

                		<h6 style="text-align:center;">历史共债</h6>
						<table class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">共债统计时间范围</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">共债机构数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">共债订单数</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">共债订单已还款金额</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">疑似借新还旧</th>
									<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">共债订单金额</th>
								</tr>
							</thead>
							<tbody>
            				<?php if(!empty($xyallfiles->data->result_detail->totaldebt_detail)){ ?>
	                            {foreach $xyallfiles->data->result_detail->totaldebt_detail as $key=>$value }
								<tr>
									<td>{$value->totaldebt_date}</td>
									<td>{$value->totaldebt_org_count}</td>
									<td>{$value->totaldebt_order_count}</td>
									<td>{$value->totaldebt_order_amt}</td>
									<td>{$value->new_or_old}</td>
									<td>{$value->totaldebt_order_lend_amt}</td>
								</tr>
	                            {/foreach}
							<?php }else{echo '<tr><td style="border-right:none;">(查无数据!)</td><td style="border-right:none;border-left:none;"></td><td style="border-right:none;border-left:none;"></td><td style="border-right:none;border-left:none;"></td><td style="border-right:none;border-left:none;"></td><td style="border-left:none;"></td></tr>';} ?>
							</tbody>
						</table>
	                <?php }elseif($allfilestate==0){ ?>
	                    <span style="color:#ccc;">查无数据</span>
	                <?php } ?>
					</div>
				</div> -->
				<!-- <div class="row cl">
					<caption>颜值_小额网贷分</caption>
					<div>
                	<?php if($appscorestate==1){ ?>
                		<table>
                			<tbody><tr><td style="text-align:center;">{$xyappscores->data->result_detail->xy_100001}</td></tr></tbody>
						</table>
	                <?php }elseif($appscorestate==0){ ?>
	                    <span style="color:#ccc;">查无数据</span>
	                <?php } ?>
					</div>
				</div> -->
				<div class="row cl">
					<caption>探针C</caption>
					<div>
                	<?php if($probecstate==1){ ?>
                		<?php if(!empty($xyprobecs->data->result_detail)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">探查结果编码	</td>
										<td>{if $xyprobecs->data->result_detail->result_code==1}逾期未还款{elseif $xyprobecs->data->result_detail->result_code==2}正常履约{elseif $xyprobecs->data->result_detail->result_code==3}逾期又还款{elseif $xyprobecs->data->result_detail->result_code==4}无法确认{/if}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最大逾期金额</td>
										<td>{$xyprobecs->data->result_detail->max_overdue_amt}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最长逾期天数</td>
										<td>{$xyprobecs->data->result_detail->max_overdue_days}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最近逾期时间	</td>
										<td>{$xyprobecs->data->result_detail->latest_overdue_time}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最大履约金额	</td>
										<td>{$xyprobecs->data->result_detail->max_performance_amt}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最近履约时间</td>
										<td>{$xyprobecs->data->result_detail->latest_performance_time}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">履约笔数</td>
										<td>{$xyprobecs->data->result_detail->count_performance}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">当前逾期机构数</td>
										<td>{$xyprobecs->data->result_detail->currently_overdue}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">当前履约机构数</td>
										<td>{$xyprobecs->data->result_detail->currently_performance}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">异常还款机构数</td>
										<td>{$xyprobecs->data->result_detail->acc_exc}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">睡眠机构数</td>
										<td>{$xyprobecs->data->result_detail->acc_sleep}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
	                <?php }elseif($probecstate==0){ ?>
	                    <span style="color:#ccc;">查无数据</span>
	                <?php } ?>
					</div>
				</div>
				<div class="row cl">
					<caption>全景雷达</caption>
					<div>
                	<?php if($allradarstate==1){ ?>
                		<h6 style="text-align:center;">申请雷达报告详情</h6>
                		<?php if(!empty($xyallradars->data->result_detail->apply_report_detail)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">申请准入分(0-1000)</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->apply_score}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">申请准入置信度(0-100)</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->apply_credibility}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">查询机构数</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->query_org_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">查询消费金融类机构数</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->query_finance_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">查询网络贷款类机构数</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->query_cash_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">总查询次数</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->query_sum_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最近查询时间</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->latest_query_time}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近1个月总查询笔数</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->latest_one_month}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近3个月总查询笔数</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->latest_three_month}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6个月总查询笔数</td>
										<td>{$xyallradars->data->result_detail->apply_report_detail->latest_six_month}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
                		<h6 style="text-align:center;">行为雷达报告详情</h6>
                		<?php if(!empty($xyallradars->data->result_detail->behavior_report_detail)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">贷款行为分(0-1000)</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_score}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">贷款行为置信度(0-100)</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_credibility}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">贷款放款总订单数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">贷款已结清订单数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_settle_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">贷款逾期订单数（M0+）</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_overdue_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">贷款机构数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_org_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消费金融类机构数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->consfin_org_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网络贷款类机构数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_cash_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近1个月贷款笔数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->latest_one_month}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近3个月贷款笔数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->latest_three_month}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6个月贷款笔数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->latest_six_month}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">历史贷款机构成功扣款笔数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->history_suc_fee}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">历史贷款机构失败扣款笔数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->history_fail_fee}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近1个月贷款机构成功扣款笔数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->latest_one_month_suc}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近1个月贷款机构失败扣款笔数</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->latest_one_month_fail}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">信用贷款时长</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_long_time}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最近一次贷款时间</td>
										<td>{$xyallradars->data->result_detail->behavior_report_detail->loans_latest_time}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
                		<h6 style="text-align:center;">信用现状报告详情</h6>
                		<?php if(!empty($xyallradars->data->result_detail->current_report_detail)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网贷建议授信额度</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->loans_credit_limit}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网贷额度置信度(0-100)</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->loans_credibility}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网络贷款类机构数</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->loans_org_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网络贷款类产品数</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->loans_product_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网络贷款机构最大授信额度</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->loans_max_limit}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网络贷款机构平均授信额度</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->loans_avg_limit}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消金建议授信额度</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->consfin_credit_limit}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消金额度置信度</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->consfin_credibility}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消费金融类机构数</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->consfin_org_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消费金融类产品数</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->consfin_product_count}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消费金融类机构最大授信额度	</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->consfin_max_limit}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消费金融类机构平均授信额度</td>
										<td>{$xyallradars->data->result_detail->current_report_detail->consfin_avg_limit}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
	                <?php }elseif($allradarstate==0){ ?>
	                    <span style="color:#ccc;">查无数据</span>
	                <?php } ?>
					</div>
				</div>
				<!-- <div class="row cl">
					<caption>智慧雷达</caption>
					<div>
                	<?php if($wisdomradarstate==1){ ?>
                		<h6 style="text-align:center;">信贷行为详情</h6>
                		<?php if(!empty($xywisdomradars->data->result_detail->comcredit)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">综合信用分</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh1}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">常驻城市</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh2}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">银行卡数量</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh3}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">信用卡数量</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh4}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">借记卡数量</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh5}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">历史交易总天数</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh8}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月有交易月数</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh9}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月交易总金额</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh17}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月交易总笔数</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh21}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月银行类交易总金额</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh25}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月线上交易渠道交易总金额</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh29}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月夜交易总金额</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh33}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月最近一笔交易距今天数</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh34}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月中小额交易占比</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh38}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月大额交易占比</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh39}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月超大额交易占比</td>
										<td>{$xywisdomradars->data->result_detail->comcredit->zh40}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
                		<h6 style="text-align:center;">消费能力详情</h6>
                		<?php if(!empty($xywisdomradars->data->result_detail->cusability)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消费能力分</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf1}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">最高消费档次</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf2}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf6}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月信用卡消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf10}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月消费总笔数</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf14}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月信用卡消费总笔数</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf18}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月最大消费天数</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf22}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月最大单日消费金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf26}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月餐饮消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf28}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月出行消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf29}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月博彩消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf30}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月整额消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf33}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月整额消费总笔数</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf41}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月夜消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf49}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月最大单日同商户多笔消费笔数</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf53}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月双休日消费总金额</td>
										<td>{$xywisdomradars->data->result_detail->cusability->xf57}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
                		<h6 style="text-align:center;">资产状况详情</h6>
                		<?php if(!empty($xywisdomradars->data->result_detail->asset)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">资产状况分</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc1}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">是否有房</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc2}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">是否有车</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc5}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">是否理财</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc8}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月理财总金额</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc9}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月理财总笔数</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc10}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月保险交易总金额</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc11}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月保险交易总笔数</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc12}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月入账总金额</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc15}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月入账总笔数</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc19}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月出账总金额</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc23}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月出账总笔数</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc27}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月大额入账总金额</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc31}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月最大单日取现金额</td>
										<td>{$xywisdomradars->data->result_detail->asset->zc35}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
                		<h6 style="text-align:center;">信贷行为详情</h6>
                		<?php if(!empty($xywisdomradars->data->result_detail->netloan)){ ?>
							<table class="left">
								<tbody>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">网贷行为分</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd1}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">消金行为分</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd2}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月金额不足交易总笔数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd5}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月金额不足交易总笔数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd6}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月失败交易总笔数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd9}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月失败交易总笔数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd10}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近6月最大单日交易失败笔数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd13}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月最大单日交易失败笔数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd14}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月最近一笔还款失败交易距今天数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd15}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近5次借贷平均还款金额</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd18}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近5次借贷平均逾期天数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd19}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近3次借贷工作日平均还款金额</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd25}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月最大单月借贷总金额</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd29}</td>
									</tr>
									<tr>
										<td style="font-size:14px;font-weight:bolder;width:50%;">近12月单月借贷总金额最大月距今月数</td>
										<td>{$xywisdomradars->data->result_detail->netloan->xd30}</td>
									</tr>
								</tbody>
							</table>
						<?php }else{echo '<p style="text-align:center;">(查无数据!)</p>';} ?>
	                <?php }elseif($wisdomradarstate==0){ ?>
	                    <span style="color:#ccc;">查无数据</span>
	                <?php } ?>
					</div>
				</div> -->
			</div>
			<div class="tabCon">
				<div class="row cl">
					<caption>运营商基础信息</caption>
					<div>
                	<?php if($yysreports==1){ ?>
						<table class="left">
							<tbody>
								<tr>
									<td>授权电话</td>
									<td style="line-height:20px;"><?php if($cellPhone){ ?>{$cellPhone->phone}<br>{$userinfo.phone}(系统){if $userinfo.phone==$cellPhone->phone}<span style="background-color:#5eb95e;color:#fff;border-radius:3px;padding:1px 5px;">完全一致</span>{/if}{if $userinfo.phone!=$cellPhone->phone}<span style="background-color:rgba(228, 136, 4, 0.8);color:#fff;border-radius:3px;padding:1px 5px;">不一致</span>{/if}<?php } ?></td>
								</tr>
								<tr>
									<td>授权时间</td>
									<td><?php if($cellPhone){ ?>{$cellPhone->regTime}（{$ymd.year}年{$ymd.month}月{$ymd.day}天）<?php } ?></td>
								</tr>
								<tr>
									<td>注册地址</td>
									<td><?php if($cellPhone){ ?>{$cellPhone->liveAddress}<?php } ?></td>
								</tr>
								<tr>
									<td>办理号码身份证姓名</td>
									<td style="line-height:20px;"><?php if($cellPhone){ ?>{$cellPhone->name}<br>{$userinfo.name}(系统){if $userinfo.name==$cellPhone->name}<span style="background-color:#5eb95e;color:#fff;border-radius:3px;padding:1px 5px;">完全一致</span>{/if}{if $userinfo.name!=$cellPhone->name}<span style="background-color:rgba(228, 136, 4, 0.8);color:#fff;border-radius:3px;padding:1px 5px;">不一致</span>{/if}<?php } ?></td>
								</tr>
								<tr>
									<td>身份证号</td>
									<td style="line-height:20px;"><?php if($cellPhone){ ?>{$cellPhone->idNo}<br>{$userinfo.idcard}(系统){if $userinfo.idcard==$cellPhone->idNo}<span style="background-color:#5eb95e;color:#fff;border-radius:3px;padding:1px 5px;">完全一致</span>{/if}{if $userinfo.idcard!=$cellPhone->idNo}<span style="background-color:rgba(228, 136, 4, 0.8);color:#fff;border-radius:3px;padding:1px 5px;">不一致</span>{/if}<?php } ?></td>
								</tr>
								<tr>
									<td>账户余额</td>
									<td><?php if($cellPhone){ ?>{$cellPhone->availableBalance/100}<?php } ?>(元)</td>
								</tr>
							</tbody>
						</table>
	                <?php }elseif($yysreports==0){ ?>
	                    <span style="color:#ccc;">暂无数据(可能未授权)</span>
	                <?php } ?>
					</div>
				</div>
				<div class="row cl">
					<caption>个人通讯信息</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">用户姓名</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">手机号</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">身份证号</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">运营商</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否实名</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">号码归属地</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">每月平均消费</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">账户余额</th>
							</tr>
						</thead>
						<tbody>
                			<?php if($yysreports==1){ ?>
							<tr>
								<td><?php if($cellPhone){ ?>{$cellPhone->name}<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->phone}<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->idNo}<?php } ?></td>
								<td></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->reliability}<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->attribution}<?php } ?></td>
								<td><?php if($consumptionDetail){ ?>{$consumptionDetail[0]->item->avgItem6m/100}(元)<?php } ?></td>
								<td><?php if($cellPhone){ ?>{$cellPhone->availableBalance/100}<?php } ?>(元)</td>
							</tr>
	                		<?php } ?>
						</tbody>
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">紧急联系人</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">紧急联系人电话</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">直系亲属</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">直系亲属电话</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">同事</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">同事电话</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">朋友</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">朋友电话</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>{$userinfo.emer_con}</td>
								<td>{$userinfo.emer_con_phone}</td>
								<td>{$userinfo.relatives}</td>
								<td>{$userinfo.relatives_phone}</td>
								<td>{$userinfo.partner}</td>
								<td>{$userinfo.partner_phone}</td>
								<td>{$userinfo.friend}</td>
								<td>{$userinfo.friend_phone}</td>
							</tr>
						</tbody>
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过紧急联系人</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过直系亲属</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过同事</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">是否联系过朋友</th>
								<!-- <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">黑名单验证</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">被查询次数</th> -->
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">逾期命中</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">总查询次数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话风险</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">芝麻信用分</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>{if $userinfo.exit_emer_con==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<td>{if $userinfo.exit_relatives==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<td>{if $userinfo.exit_partner==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<td>{if $userinfo.exit_friend==1}是{else/}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">否</span>{/if}</td>
								<!-- <td><?php if(!empty($allday['resData'])){ ?>{if $allday['resData']['blacklistCode']==null}未命中{elseif $allday['resData']['blacklistCode']==0}<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">命中</span>{/if}<?php } ?></td>
								<td>
									<?php if(!empty($allday['resData'])){ ?>{if $allday['resData']['overdueRes']['overduePlatform90Days']}
									<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">{$allday['resData']['overdueRes']['overduePlatform90Days']}
									</span>{else}0{/if}<?php } ?>
								</td> -->
								<td>
									<?php if($probecstate==1){ ?>
                						<?php if(!empty($xyprobecs->data->result_detail)){ ?>
	                						<?php if($xyprobecs->data->result_detail->currently_overdue>0){ ?>
	                						<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">命中</span>
											<?php }else{echo '未命中';} ?>
										<?php }else{echo '未命中';} ?>
									<?php }else{echo '未命中';} ?>
								</td>
								<td><?php if($allradarstate==1){ ?>
										<?php if(!empty($xyallradars->data->result_detail->apply_report_detail)){ ?>
										{$xyallradars->data->result_detail->apply_report_detail->query_sum_count}
										<?php }else{echo 0;} ?>
									<?php }else{echo 0;} ?>
								</td>
								<td>
									<?php if(!empty($callRiskAnalysis)){ ?>
		                            	{foreach $callRiskAnalysis as $key=>$value }
		                            		{if $value->point->callTime6m==0}
		                            			<span id="thfx"></span>
		                            		{elseif $value->point->callTime6m>0}
		                            			<input type="hidden" name="thfxe" value="1">
		                            			<span style="background-color:red;color:#fff;border-radius:3px;padding:1px 5px;">{$value->desc}
		                            			</span>
		                            		{/if}
		                            	{/foreach}
                            		<?php } ?>
								</td>
								<td>{if $userinfo.sesame_state==1}{$userinfo.sesame_score}{else}用户未认证{/if}</td>
							</tr>
						</tbody>
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">互通电话数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">夜间活动情况(0:00-7:00)</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">短信情况</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">非活跃总天数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">连续3天非活跃次数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">朋友圈分布</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">通讯录数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">创建时间</th>
							</tr>
						</thead>
						<tbody>
                			<?php if($yysreports==1){ ?>
							<tr>
								<td><?php if($friendCircle){ ?>{$friendCircle->interPeerNum6m}<?php } ?></td>
								<td><?php if($callTimeDetail){ ?>{:round($callTimeDetail[9]->item->avgItem6m/$callTimeDetail[8]->item->avgItem6m,2)}%<?php } ?></td>
								<td><?php if($activeDegree){ ?>{$activeDegree[10]->item->item6m}<?php } ?></td>
								<td><?php if($activeDegree){ ?>{$activeDegree[19]->item->item6m}<?php } ?></td>
								<td><?php if($activeDegree){ ?>{$activeDegree[24]->item->item6m}<?php } ?></td>
								<td><?php if($friendCircle){ ?>{$friendCircle->friendCityCenter6m}<?php } ?></td>
								<td><?php if($contacts){ echo count($contacts);}else{echo 0;} ?></td>
								<td>{:date('Y-m-d H:i:s',$userinfo.yystime)}</td>
							</tr>
	                		<?php } ?>
						</tbody>
						<!-- <thead style="background-color:#f9f9f9;">
							<tr>
								<th colspan="7" class="center" style="font-size:14px;height:30px;font-weight:bolder;">非活跃天数细节</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td colspan="7">2018-09-03</td>
							</tr>
						</tbody> -->
					</table>
				</div>
                <?php if($yysreports==1){ ?>
				<div class="row cl">
					<caption>通话风险分析</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">分析项</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月通话次数</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月通话时长（秒）</th>
							</tr>
						</thead>
						<tbody>
							<?php if($callRiskAnalysis){ ?>
                            	{foreach $callRiskAnalysis as $key=>$value }
							<tr>
								<td>{$value->desc}</td>
								<td>{$value->point->callCnt6m}</td>
								<td>{$value->point->callTime6m}</td>
							</tr>
                            {/foreach}
                            <?php } ?>
						</tbody>
						<tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>消费详单</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">分析项</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近1月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月平均数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月平均数量</th>
							</tr>
						</thead>
						<tbody>
							<?php if($consumptionDetail){ ?>
                            {foreach $consumptionDetail as $key=>$value }
							<tr>
								<td>{:str_replace('分','元',$value->appPointDesc)}</td>
								<td>{$value->item->item1m/100}</td>
								<td>{$value->item->item3m/100}</td>
								<td>{$value->item->item6m/100}</td>
								<td>{$value->item->avgItem3m/100}</td>
								<td>{$value->item->avgItem6m/100}</td>
							</tr>
                            {/foreach}
                            <?php } ?>
						</tbody>
						<tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>通话时长详单</caption>
					<table class="center">
						<thead style="background-color:#f9f9f9;">
							<tr>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">分析项</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近1月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近3月平均数量</th>
								<th class="center" style="font-size:14px;height:30px;font-weight:bolder;">近6月平均数量</th>
							</tr>
						</thead>
						<tbody>
							<?php if($callTimeDetail){ ?>
                            {foreach $callTimeDetail as $key=>$value }
							<tr>
								<td>{:str_replace('秒','分钟',$value->appPointDesc)}</td>
								<td>{if $key==0||$key==1||$key==8||$key==9||$key==12||$key==13}{:ceil($value->item->item1m/60)}{else}{$value->item->item1m}{/if}</td>
								<td>{if $key==0||$key==1||$key==8||$key==9||$key==12||$key==13}{:ceil($value->item->item3m/60)}{else}{$value->item->item3m}{/if}</td>
								<td>{if $key==0||$key==1||$key==8||$key==9||$key==12||$key==13}{:ceil($value->item->item6m/60)}{else}{$value->item->item6m}{/if}</td>
								<td>{if $key==0||$key==1||$key==8||$key==9||$key==12||$key==13}{:ceil($value->item->avgItem3m/60)}{else}{$value->item->avgItem3m}{/if}</td>
								<td>{if $key==0||$key==1||$key==8||$key==9||$key==12||$key==13}{:ceil($value->item->avgItem6m/60)}{else}{$value->item->avgItem6m}{/if}</td>
							</tr>
                            {/foreach}
                            <?php } ?>
						</tbody>
						<tbody>
					</table>
				</div>
				<div class="row cl">
					<caption>通话详单(近6月统计：<?php if($callContactDetail){ echo count($callContactDetail);}else{echo 0;} ?>个)<input type="hidden" value="<?php if($callContactDetail){ echo count($callContactDetail);}else{echo 0;} ?>" name="callContactDetail"></caption>
					<div id="callDetail">
						<table class="center">
							<thead style="background-color:#f9f9f9;">
								<tr>
									<th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话地</th>
									<th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">与联系人关系</th>
									<th width="100" class="center" style="font-size:14px;height:30px;font-weight:bolder;">联系人号码</th>
									<th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">号码类型</th>
									<th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">号码标识</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">通话时长</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">主叫时长</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">被叫时长</th>
	                                <!-- <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">早晨通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">中午通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">下午通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">晚上通话次数</th>
	                                <th class="center" style="font-size:14px;height:30px;font-weight:bolder;">凌晨通话次数</th> -->
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">工作日通话次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">周末通话次数</th>
	                                <th width="50" class="center" style="font-size:14px;height:30px;font-weight:bolder;">节假日通话次数</th>
	                                <th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">第一次通话时间</th>
	                                <th width="300" class="center" style="font-size:14px;height:30px;font-weight:bolder;">最后一次通话时间</th>
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
						<div style="float:left;width:100%;">
                            <div class="m-style cdbox"></div>
						</div>
					</div>
				</div>
	            <?php } ?>
			</div>
		</div>
</div>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="/static/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript" src="/static/js/jquery.pagination.js"></script>
<script type="text/javascript" src="/static/js/boxImg.js"></script>
<script type="text/javascript">
var totals=$("input[name='contacts']").val();
var user_id=$("input[name='user_id']").val();
var total=Math.ceil(totals/30);
var callDetails=$("input[name='callContactDetail']").val();
var callDetail=Math.ceil(callDetails/10);
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('oten')}",
        dataType:"json",
        data : {user_id:user_id},
        success:function(data){
                var otenstr='';
                for (var i = 0; i < 10; i++) {
                	if(data.data[i].txlxm==undefined){
                		otenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialCnt6m+'</td>'+
	                    '<td></td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}else{
	                    otenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data[i].txlxm+'</td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}
                }
                $("#oten tbody").empty();
                $("#oten tbody").append(otenstr);
        }
    });
});
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('eten')}",
        dataType:"json",
        data : {user_id:user_id},
        success:function(data){
                var etenstr='';
                for (var i = 0; i < 10; i++) {
                	if(data.data[i].txlxm==undefined){
	                    etenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialedCnt6m+'</td>'+
	                    '<td></td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}else{
	                    etenstr+='<tr>'+
	                    '<td>'+data.data[i].peerNumber+'</td>'+
	                    '<td>'+data.data[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data[i].txlxm+'</td>'+
	                    '<td>'+data.data[i].city+'</td>'+
	                    '</tr>';
                	}
                }
                $("#eten tbody").empty();
                $("#eten tbody").append(etenstr);
        }
    });
});
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('contacts_page')}",
        dataType:"json",
        data : {user_id:user_id,page:1},
        success:function(data){
                var strdataz='';
                var strdatao='';
                var strdatat='';
                if(10<totals){
	                for (var i = 0; i < 10; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }else{
	                for (var i = 0; i < totals; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }
                if(20<totals){
	                for (var j = 10; j < 20; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var j = 10; j < totals; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                if(30<totals){
	                for (var k = 20; k < 30; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var k = 20; k < totals; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                $("#test table:first tbody").empty();
                $("#test table:first tbody").append(strdataz);
                $("#test table").eq(1).find("tbody").empty();
                $("#test table").eq(1).find("tbody").append(strdatao);
                $("#test table:last tbody").empty();
                $("#test table:last tbody").append(strdatat);
        }
    });
});
$(function(){
    $.ajax({
        type : 'get',
        url  :  "{:url('calldetail_page')}",
        dataType:"json",
        data : {user_id:user_id,page:1},
        success:function(data){
                var calldetailstr='';
                if(10<callDetails){
	                for (var i = 0; i < 10; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '</tr>';
	                }
                }else{
	                for (var i = 0; i < callDetails; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '<td></td>'+
	                    '</tr>';
	                }
                }
                $("#callDetail table tbody").empty();
                $("#callDetail table tbody").append(calldetailstr);
        }
    });
});
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#tab-system").Huitab({
		index:0
	});
	$("#form-admin-add").validate({
		rules:{
			only:{
				required:true,
			},
		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			$(form).ajaxSubmit({
				type: 'post',
				url: "{:url('orders_examine')}",
				success: function(data){
					if(data.code==200){
						var index = parent.layer.getFrameIndex(window.name);
						parent.location.reload();
						parent.layer.close(index);
					}else{
						alert('出错')
					}

				},
                error: function(XmlHttpRequest, textStatus, errorThrown){
					var index = parent.layer.getFrameIndex(window.name);
					parent.layer.close(index);
				}
			});
		}
	});
});
$(".box").pagination({
    pageCount: total,
    jump: true,
    callback: function (api) {
        $.ajax({
            type : 'get',
            url  :  "{:url('contacts_page')}",
            dataType:"json",
            data : {user_id:user_id,page:api.getCurrent()},
            success:function(data){
                var strdataz='';
                var strdatao='';
                var strdatat='';
                if(api.getCurrent()*30-20<totals){
	                for (var i = api.getCurrent()*30-30; i < api.getCurrent()*30-20; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }else{
	                for (var i = api.getCurrent()*30-30; i < totals; i++) {
	                	if((data.data[i].phoneNumbers instanceof Array) && !(typeof(data.data[i].phoneNumbers['0']) == "undefined")){
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td>'+data.data[i].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
	                	}else{
		                    strdataz+='<tr>'+
		                    '<td>'+data.data[i].displayName+'</td>'+
		                    '<td></td>'+
		                    '</tr>';
	                	}
	                }
                }
                if(api.getCurrent()*30-10<totals){
	                for (var j = api.getCurrent()*30-20; j < api.getCurrent()*30-10; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var j = api.getCurrent()*30-20; j < totals; j++) {
	                	if((data.data[j].phoneNumbers instanceof Array) && !(typeof(data.data[j].phoneNumbers['0']) == "undefined")){
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[j].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                    strdatao+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[j].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                if(api.getCurrent()*30<totals){
	                for (var k = api.getCurrent()*30-10; k < api.getCurrent()*30; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }else{
	            	for (var k = api.getCurrent()*30-10; k < totals; k++) {
	                	if((data.data[k].phoneNumbers instanceof Array) && !(typeof(data.data[k].phoneNumbers['0']) == "undefined")){
		                    strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;">'+data.data[k].phoneNumbers['0'].value+'</td>'+
		                    '</tr>';
		                }else{
		                	strdatat+='<tr>'+
		                    '<td style="border-left:0px;">'+data.data[k].displayName+'</td>'+
		                    '<td style="border-left:0px;"></td>'+
		                    '</tr>';
		                }
	                }
	            }
                $("#test table:first tbody").empty();
                $("#test table:first tbody").append(strdataz);
                $("#test table").eq(1).find("tbody").empty();
                $("#test table").eq(1).find("tbody").append(strdatao);
                $("#test table:last tbody").empty();
                $("#test table:last tbody").append(strdatat);
            }
        })
    }
});
$(".cdbox").pagination({
    pageCount: callDetail,
    jump: true,
    callback: function (api) {
        $.ajax({
            type : 'get',
            url  :  "{:url('calldetail_page')}",
            dataType:"json",
            data : {user_id:user_id,page:api.getCurrent()},
            success:function(data){
                var calldetailstr='';
                if(api.getCurrent()*10<callDetails){
	                for (var i = api.getCurrent()*10-10; i < api.getCurrent()*10; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '<td></td>'+
	                    '</tr>';
	                }
                }else{
	                for (var i = api.getCurrent()*10-10; i < callDetails; i++) {
	                    calldetailstr+='<tr>'+
	                    '<td>'+data.data.resData.callContactDetail[i].city+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].relation+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].peerNumber+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].groupName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].companyName+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedCnt6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].dialedTime6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntWeekend6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].callCntHoliday6m+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transStart+'</td>'+
	                    '<td>'+data.data.resData.callContactDetail[i].transEnd+'</td>'+
	                    '<td></td>'+
	                    '</tr>';
	                }
                }
                $("#callDetail table tbody").empty();
                $("#callDetail table tbody").append(calldetailstr);
            }
        })
    }
});
$(".b-multiRegisterRes").click(function(){
      $(".multiRegisterRes").fadeToggle(500)
});
$(".b-overdueRes").click(function(){
      $(".overdueRes").fadeToggle(500)
});
$(".b-creditableRes").click(function(){
      $(".creditableRes").fadeToggle(500)
});
$(".b-favourableRes").click(function(){
      $(".favourableRes").fadeToggle(500)
});
$(".b-rejecteeRes").click(function(){
      $(".rejecteeRes").fadeToggle(500)
});
$(document).ready(function(){
	$('.sxf').on('input propertychange', function(){
	      	let bfb =  $('.sxf').val()
	      	let zped = $('.tmdmoney').val()
	      	let zh = zped - bfb * 0.01 * zped
	      	$('.sjfk span').html(zh)
	      	$('.sjfk input').val(zh)
	});
    $('.tmdmoney').on('input propertychange', function(){
       	    let bfb =  $('.sxf').val()
	      	let zped = $('.tmdmoney').val()
	      	let zh = zped - bfb * 0.01 * zped
	      	$('.sjfk span').html(zh)
	      	$('.sjfk input').val(zh)
    });
    $('#reset').on('click', function(){
	      	let zped = $('input[name=money]').val()
	      	let zh =parseInt(0.68* zped)
	      	$('.sjfk span').html(zh)
	      	$('.sjfk input').val(zh)
    });
    var thfxe=$("input[name=thfxe]").val();
    if(thfxe==1){
    	console.log(thfxe);
    }else{
	    $('#thfx').html('无');
    }
});
</script>
{/block}